States as Speciications
نویسنده
چکیده
We present a general approach for formally modelling states of object-oriented programs using OBJ 10] speciications and associated order-sorted theory presentations 9]. This formal model can then be used to deene the structural operational semantics 14] of object-oriented languages. Our approach has the advantage of using the power of the theory of abstract data types for deening operations on states. As states are represented by an abstract structure, the operational semantics can be deened in a simpler way, facilitating reasoning about programs and derivation of implementations. Resumo Neste trabalho apresentamos uma abordagem gen erica para modelar formalmente estados de pro-gramas orientados a objetos. Em particular, nn os usamos especiicaa c~ oes em OBJ 10] e teorias alg ebricas 9] como ferramentas bb asicas. O modelo formal apresentado pode ser diretamente uti-lizado para deenir a sem^ antica operacional estruturada 14] de vv arias linguagens orientadas a objetos. A grande vantagem da abordagem apresentada e usar a teoria de tipos abstratos de dados para deenir estados e as operaa c~ oes sobre os mesmos. Como estados s~ ao representados de forma bem abstrata, a sem^ antica operacional de uma linguagem pode ser mais facilmente deenida, facilitando o racioc nio sobre programas e a derivaa c~ ao de implementaa c~ oes.
منابع مشابه
Classification and Comparison of Module Concepts for Graph Transformation Systems
In this chapter we use a three-level approach for analyzing module concepts for graph transformation systems. Based on the observation that module architectures consist of basic speciications like body or export interface and relations like the implementation relation between them, or the import relation between a client and a server module, module concepts are characterized by answering the qu...
متن کاملA Compositional Comparison of Specifications of the Alternating Bit Protocol in CCS and UNITY Based on Algebra Transformation Systems
Algebra transformation systems (ATS) are introduced as a common semantical framework in which speciications written in diier-ent languages can be interpreted and formally compared. An ATS is a two layered structure given by a transitions system modeling the behaviour of a system and a data level containing the associated data states and their transformations. This structure allows for the inter...
متن کاملAugmented Petri Nets for Veri cation of Real-Time Speci cations
A technique is presented for verifying real-time system speciications. A visual conceptual modeling language called ECM is used as a real-time speciication language. Speciications are translated into augmented Petri nets with timing and temporal logic constraints. A reachability tree of legal system states is generated from the timing constraints in the Petri net. Past temporal logic constraint...
متن کاملCompiling Modechart Speciications
The Modechart speciication language is a formalism for the speciication of real-time systems. A toolset for speciication, analysis and simulation for Modechart speciications exists for supporting the design and construction of real-time systems CHLR93]. This paper introduces a new tool in the the toolset: a compiler for a class of Modechart speciications, namely, that of deterministic system sp...
متن کاملModular Specification of Concurrent Systems with Observational Logic
We present a dynamic form of observational logic for specifying concurrent systems on the basis of their observable behaviour, in particular without needing a language for describing states, which are regarded as non-observable. The logic is based on quantales. The models are labelled transition systems, and a weakly complete proof system is presented. We study the logic from the point of view ...
متن کامل